<?php
use yii\bootstrap\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
?>
<div class="container-fluid">
    <div><?= $project->project_name ?></div>
</div>
<ul id="plan_benifit_tab" class="nav nav-pills">
<?php foreach ($plan as $b) {?>
<li><a href="#<?= $b->plan_code ?>" data-toggle="tab"><?= $b->plan_name ?></a></li>
<?php }?>
</ul>
<div id="plan_benifit_content" class="tab-content">
<?php 
foreach ($benifit as $b=>$v) {?>
    <div class="tab-pane fade in active" id="<?= $b ?>">
    <?php foreach ($v as $y) {
    	?>
		<div class="container-fluid">
		<div class="pull-left"><?= $y['benifit_name'] ?> </div>
		<div class="pull-right"><?= $y['benifit_amount'] >10000?$y['benifit_amount'] /10000 .'万':$y['benifit_amount']  ?> </div>	
		</div>	
	<?php } ?>   
    </div>
<?php }?> 
</div>

